<ul>
    <% for(var i  = 0; i < data.length; i++){
        var item = data[i] || {};
    %>
    <li data-id="<%= item._id %>" data-childs="<%= JSON.stringify(item.child) %>" class="<%= item.child.length > 0 ? 'parent_li':''  %>"><span title="<%= item.child.length > 0 ? '展开':''  %>" class="  <%= item.gender == 1?' wuman':' man'  %>  " ><i class="<%= item.child.length > 0 ? 'icon-plus-sign':''  %>"></i> <%= item.name %></span>
        <i class="edit icon-pencil changeF" title="修改父节点"  data-id="<%= item._id %>" data-parent="<%= item.parent %>" style="<%= hide?'display: none':'' %>"></i>
        <i class="edit icon-remove changeR" title="删除"  data-item="<%= JSON.stringify(item) %>" style="<%= hide?'display: none':'' %>"></i>
        <a class="edit icon-plus-sign"  href="/admin/add/<%= item._id %>/<%= item.name %>"   target="_blank" title="添加子" style="<%= hide?'display: none':'' %>"></a>
        <a class="edit icon-eye-open" href="/admin/info/<%= item._id %>"   target="_blank" title="查看详细信息" style="<%= hide?'display: none':'' %>"></a>
        <a class="edit icon-zoom-in" href="/admin/root/<%= item._id %>"   target="_blank" title="以此为根节点打开" style="<%= hide?'display: none':'' %>"></a>
    </li>
    <%}%>
</ul>